package com.example.demo.db.service;

import com.example.demo.db.domain.UserEntity;
import com.example.demo.db.mapper.UserMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author: htc
 * @date: Created in 10:03 2019/3/12.
 */
@Service
public class UserService {
    private final static Logger log = LoggerFactory.getLogger(UserService.class);

    @Resource
    private UserMapper userMapper;

    public void insert(UserEntity user) {
        userMapper.insert(user);
    }
}
